package com.niit.service;

import com.niit.entity.Notification;
import com.niit.utils.Result;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface NotificationService {

    Page<Notification> getNotifications(String title, Byte level, Byte type, Pageable pageable, Integer loginType);

    Notification getNotificationById(Integer id);

    void createNotification(Notification notification);

    void updateNotification(Integer id, Notification notification);

    void deleteNotification(Integer id);

    void deleteNotifications(List<Integer> ids);

    void markAsRead(Integer userId, Integer notificationId);
}